package cmj.cloudmusic.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class MyFirstReceiver extends BroadcastReceiver {
    public MyFirstReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        String msg=intent.getStringExtra("msg");
        Log.e("receiver", "onReceive: "+msg );
        String first="第一个广播接收者";

        Bundle bundle=new Bundle();
        bundle.putString("msg",msg);
        bundle.putString("first",first);
        setResultExtras(bundle);
    }
}
